import { defineConfig } from "vitest/config";
import Vue from "@vitejs/plugin-vue";
import VueJsx from "@vitejs/plugin-vue-jsx";

export default defineConfig({
  plugins: [Vue(), VueJsx()],
  optimizeDeps: {
    disabled: true,
  },
  test: {
    clearMocks: true,
    //
    environment: "happy-dom",
    setupFiles: ["./vitest.setup.ts"],
    transformMode: {
      web: [/\.[jt]sx$/],
    },
  },
});
